<div id="sf_admin_container">
    <div id="sf_admin_bar">
        <div class="sf_admin_filter">
            <form action="<?php echo url_for('smart_report/index') ?>" method="post">
                <table>
                    <?php foreach ($form as $k => $widget) { ?>
                        <tr class="sf_admin_form_row">
                            <td>
                                <?php echo $widget->renderLabel() ?>
                            </td>
                            <td>
                                <?php echo $widget->render() ?>
                            </td>
                        </tr>
                    <?php } ?>
                </table>
                <input class="ainput" type="submit" value="<?php echo __('do_report') ?>"/>
                <input class="ainput" type="reset" value="<?php echo __('reset_form') ?>" />
            </form>
        </div>
    </div>
</div>


<script>
    jQuery('#output_School').click(function(){
        jQuery('#draw_chart').removeAttr('disabled','disabled');
    })
    jQuery('#output_Trainer, #output_Program, #output_Teacher').click(function(){
        jQuery('#draw_chart').attr('disabled','disabled');
    })
    
    
</script>
    
    